package com.itgacl.magic4j.libcommon.component.license.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author gacl
 * @version 1.0
 * @description: TODO
 * @date 2021/12/24 14:21
 */
@Data
public class LicenseCheckDTO {

    @ApiModelProperty(value = "授权IP地址")
    @NotBlank(message = "授权码不能为空")
    private String licenseCode;

    @ApiModelProperty(value = "license模式，0：单机模式，1：时限模式，2：联网模式")
    @NotNull(message = "license模式不能为空")
    private Integer mode;

    @ApiModelProperty(value = "授权有效期")
    @NotNull(message = "授权有效期不能为空")
    private Date expiryTime;
}
